<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	response.setCharacterEncoding("UTF-8");
	response.setContentType("text/xml");
	response.setHeader("Cache-Control","no-cache"); 
	response.setHeader("Pragma","no-cache"); 
%>
<menu>
	<!-- 任何状态都可以编辑 -->
	<item id="a" text="编辑"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>carriageManage/carriageManageAction!gotoEdit.action?id=<s:property value='id' />","500","250");'/>
	<!--  
	<item id="a" text="删除"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>carriageManage/carriageManageAction!gotoDel.action?id=<s:property value='id' />","320","150");'/>
	-->
	<!-- 1：为可用状态,可用状态可以设置为维修和申请使用 -->
	<s:if test="objctForm.state==1">
		<item id="a" text="维修"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>carriageManage/carriageManageAction!gotoChangeSate.action?objctForm.id=<s:property value='id' />&amp;objctForm.state=2","320","150");'/>
		<!--  
		<item id="a" text="申请使用"  action='showDialog("鼎烜集团  网络办公自动化系统","carriageEntry/carriageEntryAction!gotoAdd.action?carriageId=<s:property value='id' />","500","150");'/>
		-->
	</s:if>
	<!-- 2:为维修 -->
	<s:if test="objctForm.state==2">
		<item id="a" text="可用"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>carriageManage/carriageManageAction!gotoChangeSate.action?objctForm.id=<s:property value='id' />&amp;objctForm.state=1","320","150");'/>
	</s:if>
	<!-- 2:使用中 -->
	<s:if test="objctForm.state==3">
		<item id="a" text="可用"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>carriageManage/carriageManageAction!gotoChangeSate.action?objctForm.id=<s:property value='id' />&amp;objctForm.state=1","320","150");'/>
		<item id="a" text="维修"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>carriageManage/carriageManageAction!gotoChangeSate.action?objctForm.id=<s:property value='id' />&amp;objctForm.state=2","320","150");'/>
	</s:if>
	<!-- 2:审批中,审批中不能修改状态,只能等申请来触发状态修改 -->
	<s:if test="objctForm.state==4">
		
	</s:if>
	
</menu>
